package dao;

import model.VideoTheek;

import org.hibernate.SessionFactory;
import org.springframework.orm.hibernate3.HibernateTemplate;


public class VideoTheekDaoImpl{
	
	private HibernateTemplate hibernateTemplate;

	public void setSessionFactory(SessionFactory sessionFactory) {
		this.hibernateTemplate = new HibernateTemplate(sessionFactory);
	}

	public void createVideoTheek(VideoTheek v) {
		hibernateTemplate.saveOrUpdate(v);
	}
}
